<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
require_once __DIR__ . "/index.php";
$appid = "YOUR_APPID";
$secretId = "YOUR_SECRETID";
$secretKey = "YOUR_SECRETKEY";
$bucket = "YOUR_BUCKET";
$client = new QcloudImage\CIClient($appid, $secretId, $secretKey, $bucket);
$client->useHttps();
$client->setTimeout(30);
$client->useNewDomain();
var_dump($client->pornDetect(["urls" => ["http://open.youtu.qq.com./static/img/image_porn04.87591fe.jpg"]]));
var_dump($client->pornDetect(["files" => ["assets/icon_porn04.jpg"]]));
var_dump($client->tagDetect(["url" => "http://open.youtu.qq.com./static/img/imag_02.f43527f.jpg"]));
var_dump($client->tagDetect(["file" => "assets/icon_imag_01.jpg"]));
var_dump($client->tagDetect(["buffer" => file_get_contents("assets/icon_imag_01.jpg")]));
var_dump($client->idcardDetect(["urls" => ["http://open.youtu.qq.com./static/img/ocr_id_01.883a2df.jpg"]], 0));
var_dump($client->idcardDetect(["files" => ["assets/icon_id_01.jpg"]], 0));
var_dump($client->idcardDetect(["buffers" => [file_get_contents("assets/icon_id_01.jpg")]], 0));
var_dump($client->namecardV2Detect(["urls" => ["http://open.youtu.qq.com/app/img/experience/char_general/ocr_namecard_01.jpg"]]));
var_dump($client->namecardV2Detect(["files" => ["assets/ocr_namecard_01.jpg"]]));
var_dump($client->namecardV2Detect(["buffers" => [file_get_contents("assets/ocr_namecard_01.jpg")]]));
var_dump($client->drivingLicence(["file" => "assets/icon_ocr_jsz_01.jpg"], 1));
var_dump($client->drivingLicence(["buffer" => file_get_contents("assets/icon_ocr_jsz_01.jpg")], 1));
var_dump($client->drivingLicence(["url" => "http://open.youtu.qq.com./static/img/ocr_jsz_01.53c2885.jpg"], 1));
var_dump($client->plate(["file" => "assets/icon_ocr_license_3.jpg"]));
var_dump($client->plate(["url" => "http://open.youtu.qq.com./static/img/ocr_license_01.d7ac40a.jpg"]));
var_dump($client->bankcard(["file" => "assets/ocr_card_01.jpg"]));
var_dump($client->bankcard(["buffer" => file_get_contents("assets/ocr_card_01.jpg")]));
var_dump($client->bankcard(["url" => "http://open.youtu.qq.com./static/img/ocr_card_01.dd4aada.jpg"]));
var_dump($client->bizlicense(["file" => "assets/ocr_yyzz_02.jpg"]));
var_dump($client->bizlicense(["buffer" => file_get_contents("assets/ocr_yyzz_02.jpg")]));
var_dump($client->bizlicense(["url" => "http://open.youtu.qq.com./static/img/ocr_yyzz_01.1d874f9.jpg"]));
var_dump($client->general(["file" => "assets/ocr_common09.jpg"]));
var_dump($client->general(["url" => "http://open.youtu.qq.com/static/img/ocr_common05.df60ecc.jpg"]));
var_dump($client->handwriting(["file" => "assets/ocr_hw_03.png"]));
var_dump($client->handwriting(["url" => "http://open.youtu.qq.com./static/img/ocr_hw_03.2174a0a.jpg"]));
var_dump($client->faceDetect(["url" => "https://open.youtu.qq.com/static/img/face_05.b64219d.jpg"], 0));
var_dump($client->faceDetect(["file" => "assets/face_05.jpg"], 0));
var_dump($client->faceDetect(["buffer" => file_get_contents("assets/face_05.jpg")], 0));
var_dump($client->faceShape(["url" => "https://open.youtu.qq.com/static/img/face_05.b64219d.jpg"], 0));
var_dump($client->faceShape(["file" => "assets/face_05.jpg"], 0));
var_dump($client->faceShape(["buffer" => file_get_contents("assets/face_05.jpg")], 0));
var_dump($client->faceNewPerson("personId0", ["groupId0"], ["url" => "http://open.youtu.qq.com./static/img/face_01.f0c4a0c.jpg"], "personName0", "personTag0"));
var_dump($client->faceNewPerson("personId1", ["groupId0"], ["file" => "assets/face_02.jpg"], "personName1", "personTag1"));
var_dump($client->faceNewPerson("personId2", ["groupId0"], ["buffer" => file_get_contents("assets/icon_id_01.jpg")], "personName2", "personTag2"));
var_dump($client->faceAddFace("person_one", ["urls" => ["YOUR URL A", "YOUR URL B"]]));
var_dump($client->faceAddFace("person_two", ["files" => ["F:\\pic\\yang.jpg", "F:\\pic\\yang2.jpg"]]));
var_dump($client->faceAddFace("person_three", ["buffers" => [file_get_contents("F:\\pic\\yang.jpg"), file_get_contents("F:\\pic\\yang2.jpg")]]));
var_dump($client->faceDelFace("person_one", ["one"]));
var_dump($client->faceSetInfo("person_one", "fanbing"));
var_dump($client->faceGetInfo("person_one"));
var_dump($client->faceGetGroupIds());
var_dump($client->faceGetPersonIds("group1"));
var_dump($client->faceGetFaceIds("person_one"));
var_dump($client->faceGetFaceInfo("1704147773393235686"));
var_dump($client->faceDelPerson("person_one"));
var_dump($client->faceVerify("person1", ["url" => "YOUR URL"]));
var_dump($client->faceVerify("person3111", ["file" => "F:\\pic\\yang3.jpg"]));
var_dump($client->faceVerify("person3111", ["buffer" => file_get_contents("F:\\pic\\yang3.jpg")]));
var_dump($client->faceIdentify("group1", ["url" => "YOUR URL"]));
var_dump($client->faceIdentify("group11", ["file" => "F:\\pic\\yang3.jpg"]));
var_dump($client->faceIdentify("group11", ["buffer" => file_get_contents("F:\\pic\\yang3.jpg")]));
var_dump($client->faceCompare(["url" => "YOUR URL A"], ["url" => "YOUR URL B"]));
var_dump($client->faceCompare(["file" => "F:\\pic\\yang.jpg"], ["file" => "F:\\pic\\yang2.jpg"]));
var_dump($client->faceCompare(["buffer" => file_get_contents("F:\\pic\\yang.jpg")], ["buffer" => file_get_contents("F:\\pic\\yang3.jpg")]));
var_dump($client->faceIdCardCompare("ID CARD NUM", "NAME", ["url" => "YOUR URL"]));
var_dump($client->faceIdCardCompare("ID CARD NUM", "NAME", ["file" => "F:\\pic\\idcard.jpg"]));
var_dump($client->faceIdCardCompare("ID CARD NUM", "NAME", ["buffer" => file_get_contents("F:\\pic\\idcard.jpg")]));
$obj = $client->faceLiveGetFour();
var_dump($obj);
$faceObj = json_decode($obj, true);
var_dump($faceObj);
$validate_data = "";
if($faceObj && isset($faceObj["data"]["validate_data"])) {
    $validate_data = $faceObj["data"]["validate_data"];
}
var_dump($validate_data);
var_dump($client->faceLiveDetectFour($validate_data, ["file" => "F:\\pic\\ZOE_0171.mp4"], false, ["F:\\pic\\idcard.jpg"]));
var_dump($client->faceIdCardLiveDetectFour($validate_data, ["file" => "F:\\pic\\ZOE_0171.mp4"], "330782198802084329", "季锦锦"));
var_dump($client->liveDetectPicture(["file" => "F:\\pic\\face1.jpg"], "123456"));
var_dump($client->liveDetectPicture(["buffer" => file_get_contents("F:\\pic\\face1.jpg")], "123456"));
var_dump($client->liveDetectPicture(["url" => "YOUR URL"], "123456"));
var_dump($client->multidentify(["file" => "F:\\pic\\r2.jpg"], ["group_id" => "tencent"]));
var_dump($client->multidentify(["file" => "F:\\pic\\face1.jpg"], ["group_ids" => ["tencent", "qq"]]));
var_dump($client->multidentify(["url" => "YOUR URL"], ["group_id" => "tencent"]));
var_dump($client->multidentify(["url" => "YOUR URL"], ["group_ids" => ["tencent", "qq"]]));

?>